home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIS Performer 2.2 Friends Demo
/
SGI IRIS Performer 2.2 Friends Demo.iso
/
friends
/
openworlds
/
tcl
/
tclui.tcl
< prev
Wrap
Text File
|
1997-11-22
|
1KB
|
51 lines
proc owTcluiInit {} {
makeTcluiWindow .
}
proc makeTcluiWindow { parentPath } {
global owTclui
global owfilename
if [regexp -- {\.$} $parentPath] {
set parentPath ""
}
set owfilename [entry $parentPath.blah]
pack $parentPath.blah -side left
set owTclui(entry) $parentPath.blah
$owTclui(entry) configure -width 40
bind $owTclui(entry) <KeyPress-Return> { owLoadURL [$owTclui(entry) get] }
button $parentPath.go -text "New URL" \
-command { owLoadURL [$owTclui(entry) get] }
pack $parentPath.go -side left
button $parentPath.add -text "Add URL" \
-command { owAddURL [$owTclui(entry) get] }
pack $parentPath.add -side left
button $parentPath.sa -text "Save" \
-command { owSave [ $owTclui(entry) get] }
pack $parentPath.sa -side left
button $parentPath.nv -text "Next View" \
-command { owNextView [$owTclui(entry) get] }
pack $parentPath.nv -side left
button $parentPath.rst -text "Reset" \
-command owReset
pack $parentPath.rst -side left
button $parentPath.quit -text "Quit" -command owQuit
pack $parentPath.quit -side top
}
proc addToHistory { file } {
global owfilename
$owfilename addhistory $file
}
#owTcluiInit